<template>
  <el-dialog title="提示" :visible.sync="$store.state.confirmInfo.show" width="30%" :before-close="handleClose">
    <span>{{$store.state.confirmInfo.message}}</span>
    <span slot="footer" class="dialog-footer">
      <el-button @click="$store.state.confirmInfo.show = false">取 消</el-button>
      <el-button type="primary" @click="confirm">确 定</el-button>
    </span>
  </el-dialog>
</template>
<script>
export default {
  components: {},
  name: "",
  data() {
    return {
      
    };
  },
  methods: {
    handleClose() {
      this.$store.state.confirmInfo.show=false
    },
    confirm(){
      _g.orderMethods([this.$store.state.confirmInfo.OK,this.handleClose])
    },
    cancel(){
      _g.orderMethods([this.$store.state.confirmInfo.Cancel,this.handleClose])
    },
  },
};
</script>
<style lang="scss" scoped>
.my-confirm {
}
</style>